{% extends "WebMainSiteBundle:User:layout.html.twig" %}
{% set title = "学校教师列表" %}
{% block title %}
    {{ title }}
{% endblock %}

{% block user_main %}
    {#{{ dump(teachers) }}#}
    {% for i in 1..9 %}
    {% for teacher in teachers %}
        <div class="row our-team">
            <div class="col-md-4">
                <figure>
                    <img src="{{ asset(teacher.user.headPic) }}" class="img-rounded" />
                </figure>
            </div>
            <div class="col-md-5">
                <p>
                    <b>姓名:</b>{{ teacher.name }}
                </p>
                <p>
                    <b>简介:</b>{{ teacher.intro }}
                </p>
                <hr class="invisible">
            </div>
            <div class="col-md-3">
                <form action="{{ path("WebSchoolTeacherRemove") }}" target="msg">
                <div class="row">
                    <p class="button-full">
                        <a href="" class="btn btn-theme btn-green" data-content="查看他发布的课程" data-placement="bottom">
                            <i class="fa fa-book"></i> 查看课程
                        </a>
                    </p>
                    <p class="button-full">
                        <button  class="btn btn-theme btn-danger" type="submit">
                            <i class="fa fa-minus"></i> 解除合作
                        </button>
                    </p>
                    <div class="form-group">
                        <input type="hidden" name="id" value="{{ teacher.id }}" />
                        <textarea name="msg" class="form-control" rows="4" placeholder="解除合作原因"></textarea>
                    </div>
                </div>
                </form>
            </div>
        </div>
        <hr>
    {% endfor %}
    {% endfor %}
{% endblock %}
